﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D77 RID: 3447
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PunkLordBattleRecordList : IMessage<PunkLordBattleRecordList>, IMessage, IEquatable<PunkLordBattleRecordList>, IDeepCloneable<PunkLordBattleRecordList>, IBufferMessage
	{
		// Token: 0x17002BBE RID: 11198
		// (get) Token: 0x06009AB1 RID: 39601 RVA: 0x0019D6B1 File Offset: 0x0019B8B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PunkLordBattleRecordList> Parser
		{
			get
			{
				return PunkLordBattleRecordList._parser;
			}
		}

		// Token: 0x17002BBF RID: 11199
		// (get) Token: 0x06009AB2 RID: 39602 RVA: 0x0019D6B8 File Offset: 0x0019B8B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PunkLordBattleRecordListReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002BC0 RID: 11200
		// (get) Token: 0x06009AB3 RID: 39603 RVA: 0x0019D6CA File Offset: 0x0019B8CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PunkLordBattleRecordList.Descriptor;
			}
		}

		// Token: 0x06009AB4 RID: 39604 RVA: 0x0019D6D1 File Offset: 0x0019B8D1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleRecordList()
		{
		}

		// Token: 0x06009AB5 RID: 39605 RVA: 0x0019D6E4 File Offset: 0x0019B8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleRecordList(PunkLordBattleRecordList other) : this()
		{
			this.battleRecordList_ = other.battleRecordList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06009AB6 RID: 39606 RVA: 0x0019D70E File Offset: 0x0019B90E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PunkLordBattleRecordList Clone()
		{
			return new PunkLordBattleRecordList(this);
		}

		// Token: 0x17002BC1 RID: 11201
		// (get) Token: 0x06009AB7 RID: 39607 RVA: 0x0019D716 File Offset: 0x0019B916
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<PunkLordBattleRecord> BattleRecordList
		{
			get
			{
				return this.battleRecordList_;
			}
		}

		// Token: 0x06009AB8 RID: 39608 RVA: 0x0019D71E File Offset: 0x0019B91E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PunkLordBattleRecordList);
		}

		// Token: 0x06009AB9 RID: 39609 RVA: 0x0019D72C File Offset: 0x0019B92C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PunkLordBattleRecordList other)
		{
			return other != null && (other == this || (this.battleRecordList_.Equals(other.battleRecordList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009ABA RID: 39610 RVA: 0x0019D760 File Offset: 0x0019B960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.battleRecordList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009ABB RID: 39611 RVA: 0x0019D794 File Offset: 0x0019B994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009ABC RID: 39612 RVA: 0x0019D79C File Offset: 0x0019B99C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009ABD RID: 39613 RVA: 0x0019D7A5 File Offset: 0x0019B9A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.battleRecordList_.WriteTo(ref output, PunkLordBattleRecordList._repeated_battleRecordList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009ABE RID: 39614 RVA: 0x0019D7CC File Offset: 0x0019B9CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.battleRecordList_.CalculateSize(PunkLordBattleRecordList._repeated_battleRecordList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009ABF RID: 39615 RVA: 0x0019D805 File Offset: 0x0019BA05
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PunkLordBattleRecordList other)
		{
			if (other == null)
			{
				return;
			}
			this.battleRecordList_.Add(other.battleRecordList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009AC0 RID: 39616 RVA: 0x0019D833 File Offset: 0x0019BA33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009AC1 RID: 39617 RVA: 0x0019D83C File Offset: 0x0019BA3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.battleRecordList_.AddEntriesFrom(ref input, PunkLordBattleRecordList._repeated_battleRecordList_codec);
				}
			}
		}

		// Token: 0x04003B9A RID: 15258
		private static readonly MessageParser<PunkLordBattleRecordList> _parser = new MessageParser<PunkLordBattleRecordList>(() => new PunkLordBattleRecordList());

		// Token: 0x04003B9B RID: 15259
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003B9C RID: 15260
		public const int BattleRecordListFieldNumber = 1;

		// Token: 0x04003B9D RID: 15261
		private static readonly FieldCodec<PunkLordBattleRecord> _repeated_battleRecordList_codec = FieldCodec.ForMessage<PunkLordBattleRecord>(10U, PunkLordBattleRecord.Parser);

		// Token: 0x04003B9E RID: 15262
		private readonly RepeatedField<PunkLordBattleRecord> battleRecordList_ = new RepeatedField<PunkLordBattleRecord>();
	}
}
